﻿capital = 736
2000.1.1 = {
	set_cosmetic_tag = PHI
	set_country_flag = dynamic_flag
	set_country_flag = dynamic_rebel_flag

	complete_special_project = sp:sp_composite_production
	complete_special_project = sp:sp_helicopter_project
	complete_special_project = sp:sp_naval_vessel_project

	set_technology = {
		integrated_transportation_system = 1
		post_conventional_rail = 1
		early_freight_locomotive = 1
		infantry_mass_assault = 1
		infantry_weapons_1 = 1
		infantry_weapons_2 = 1
		infantry_weapons_3 = 1
		infantry_weapons_4 = 1
		cnc_equipment_1 = 1
		cnc_equipment_2 = 1
		Anti_tank_0 = 1
		Heavy_Anti_tank_0 = 1
		combat_eng_equipment = 1
		night_vision_1 = 1
		util_vehicle_1 = 1
		util_vehicle_2 = 1
		body_armor_1 = 1
		camouflage_1 = 1
		camouflage_2 = 1
		basic_computing = 1
		integrated_circuit = 1
		computing1 = 1
		decryption1 = 1
		encryption1 = 1
		fuel_silos = 1
		nanofibers_1 = 1
		nanofibers_2 = 1
		printing_1 = 1
		printing_2 = 1
		fuel_refining = 1
		construction1 = 1
		corvette_hull_1 = 1
		corvette_hull_2 = 1
		frigate_hull_1 = 1
		frigate_hull_2 = 1
		frigate_hull_3 = 1
		destroyer_hull_1 = 1
		destroyer_hull_2 = 1
		attack_submarine_hull_1 = 1
		attack_submarine_hull_2 = 1
		tech_submarine_engineering_1 = 1
		tech_naval_systems_engineering = 1
		tech_power_systems_1 = 1
		tech_diesel_power_systems_1 = 1
		aircraft_carrier_engineering = 1
		aircraft_heli_engineering_1 = 1
		tech_combat_support_systems = 1
		tech_fire_control_1 = 1
		tech_combat_radar_1 = 1
		tech_combat_radar_2 = 1
		tech_combat_sonar_1 = 1
		tech_early_naval_weapon_systems = 1
		tech_naval_weapon_systems = 1
		tech_light_guns_1 = 1
		tech_point_defense_chain_gun = 1
		tech_turret_missiles_surface_1 = 1
		tech_turret_missiles_aa_1 = 1
		tech_vls_surface_1 = 1
		tech_vls_aa_1 = 1
		tech_torpedoes_1 = 1
		tech_landing_craft_1 = 1
	}

	complete_special_project = sp:sp_armoured_vehicle_project
	if = {
		limit = { has_dlc = "No Step Back" }
		set_oob = "PHI_2000_nsb"

		set_technology = {
			mbt_tech_ops = 1
			mbt_tech = 1
			mbt_tech_1 = 1
			tank_ammo_1 = 1
			small_autocannon_tech = 1
			diesel_engine_tech = 1
			tank_components_tech = 1
			nsb_artillery_0 = 1
			nsb_Anti_Air_0 = 1
			helo_ops_tech = 1
			nsb_attack_helicopter_tech_1 = 1
			nsb_engine_tech_1 = 1
			nsb_atgm_tech_1 = 1
			nsb_multiple_atgm_tech_1 = 1
			nsb_heavy_atgm_tech_1 = 1
			nsb_rocket_pods_tech_1 = 1
			nsb_gun_pods_tech_1 = 1
			nsb_light_nose_gun_tech_1 = 1
			nsb_defense_tech_1 = 1
			nsb_transport_helicopter_1 = 1
		}

		create_equipment_variant = {
			name = "GKN Simba"
			type = medium_tank_amphibious_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun
				reload_type_slot = manual_loading
				ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_no_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				armor_type_slot = afv_alum_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_1 = afv_troop_capacity
				special_type_slot_2 = afv_gun_ports
				special_type_slot_3 = afv_reverse_doors
				special_type_slot_4 = tank_battlestation_1
			}
			icon = "gfx/interface/technologies/PHI/LAND/APC1.dds"
		}
		create_equipment_variant = {
			name = "GKN Simba (IFV)"
			type = medium_tank_flame_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = small_autocannon
				reload_type_slot = automatic_loading
				ammunition_load_slot = mixed_autocannon_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				armor_type_slot = afv_alum_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_1 = afv_troop_capacity
				special_type_slot_2 = afv_gun_ports
				special_type_slot_3 = empty
				special_type_slot_4 = tank_battlestation_1
			}
			icon = "gfx/interface/technologies/PHI/LAND/IFV1.dds"
		}
		else = {
			set_oob = "PHI_2000_nonnsb"
			set_technology = {
				Early_APC = 1
				APC_1 = 1
				MBT_1 = 1
				IFV_1 = 1
				tech_arty_0 = 1
				SP_Anti_Air_0 = 1
				Anti_Air_0 = 1
				Rec_tank_0 = 1
				transport_helicopter_1 = 1
			}
		}
	}
	if = {
		limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "PHI_2000_bba"

		set_technology = {
			early_airframe_designs = 1
			flying_wing_design = 1
			refueling_1 = 1
			early_weapons = 1
			countermeasures_1 = 1
			engines_2 = 1
			air_weapons_1 = 1
		}
		else = {
			set_air_oob = "PHI_2000_nonbba"

			set_technology = {
				early_fighter = 1
				transport_plane1 = 1
				early_bomber = 1
			}
		}
	}
	set_naval_oob = "PHI_2000_naval_mtg"

	#Rizal Class https://en.wikipedia.org/wiki/Rizal-class_corvette
	create_equipment_variant = {
		name = "Rizal Class"
		type = corvette_hull_1
		#name_group = PHI_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_76mm_gun_1
			front_1_custom_slot = module_chain_gun
			rear_1_custom_slot = module_light_helipad_1
		}
	}


	#Malvar Class https://en.wikipedia.org/wiki/Malvar-class_corvette	<---- this shit is ww2 era and should be trash
	create_equipment_variant = {
		name = "Malvar Class"
		type = corvette_hull_1
		#name_group = PHI_DD_HISTORICAL
		parent_version = 1
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_76mm_gun_1
			front_1_custom_slot = module_chain_gun
			rear_1_custom_slot = module_light_helipad_1
		}
		icon = "gfx/interface/technologies/PHI/NAV/CRV1_Malvar.dds"
	}

	#Jacinto Class https://en.wikipedia.org/wiki/Emilio_Jacinto-class_corvette
	create_equipment_variant = {
		name = "Jacinto Class"
		type = corvette_hull_2
		#name_group = PHI_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_76mm_gun_1
			front_1_custom_slot = module_chain_gun
			rear_1_custom_slot = module_light_helipad_1
		}
	}

	add_ideas = {
		wto_member
		partially_privatized_healthcare
		balanced_protections
		standard_maintenance
		us_dollar
		standard_regulations
		PHI_locked_corruption

		corruption_level_07
		christian
		fast_growth
		defence_01
		edu_01
		health_01
		social_01
		bureau_02
		police_04
		volunteer_army
		volunteer_women
		small_medium_business_owners
		oligarchs
		maritime_industry
		mixed_economy
		officer_advanced_training
		ASEAN_Member
		no_currency_backing
	}

	add_timed_idea = { idea = asian_crisis days = 1160 }

	# Cartel System
	set_variable = { cartel_political_influence = 20 }
	set_variable = { strength_of_cartels = 25 }

		# Corruption System
	set_variable = { PHI_corruption_strength = 90 }

	# Moro and communist insurgencies
	PHI_update_the_effects_of_islamic_strength = yes
	PHI_update_the_effects_of_npa_strength = yes

	add_opinion_modifier = { target = SIN modifier = asean_relations }
	reverse_add_opinion_modifier = { target = SIN modifier = asean_relations }
	add_opinion_modifier = { target = SIA modifier = asean_relations }
	reverse_add_opinion_modifier = { target = SIA modifier = asean_relations }
	add_opinion_modifier = { target = VIE modifier = asean_relations }
	reverse_add_opinion_modifier = { target = VIE modifier = asean_relations }

	#Cyber
	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		add_to_array = { cyber_targets = CHI }
		add_to_array = { cyber_targets = JAP }
		add_to_array = { cyber_targets = VIE }
	}

	#Influence system
	add_to_array = { PHI.influence_targets = TAI }
	add_to_array = { PHI.influence_targets = JAP }
	add_to_array = { PHI.influence_targets = KOR }
	add_to_array = { PHI.influence_targets = VIE }
	add_to_array = { PHI.influence_targets = LAO }
	add_to_array = { PHI.influence_targets = CBD }
	add_to_array = { PHI.influence_targets = SIA }
	add_to_array = { PHI.influence_targets = MAY }
	add_to_array = { PHI.influence_targets = IND }
	add_to_array = { PHI.influence_targets = PAP }
	add_to_array = { PHI.influence_targets = CHI }

	init_influence = yes
	set_variable = { domestic_influence_amount = 87 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 97 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 39 }
	add_to_array = { influence_array = JAP.id }
	add_to_array = { influence_array_val = 45 }
	add_to_array = { influence_array = TAI.id }
	add_to_array = { influence_array_val = 9 }
	add_to_array = { influence_array = SPR.id }
	add_to_array = { influence_array_val = 1 }
	add_to_array = { influence_array = AST.id }
	add_to_array = { influence_array_val = 23 }
	add_to_array = { influence_array = KOR.id }
	add_to_array = { influence_array_val = 18 }
	sort_influence = yes

	### Economy
	set_variable = { var = debt value = 204.141 }
	set_variable = { var = treasury value = 22 }
	set_variable = { var = corporate_tax_rate value = 28 }
	set_variable = { var = population_tax_rate value = 12 }
	set_variable = { var = int_investments value = 0 }
	set_variable = { inflation_rate_var = 0.05939 }
	set_variable = { cb_policy_rate = 3 }
	set_variable = { var = gdp_per_capita value = 4.456 }
	set_variable = { overall_productivity = 464 }

	set_popularities = {
		democratic = 25.56
		communism = 10.2
		fascism = 1.17
		neutrality = 56.65
		nationalist = 6.42
	}
	set_politics = {
		ruling_party = neutrality
		last_election = "1998.5.11"
		election_frequency = 72 #Giving the accurate 6 year election. A
		elections_allowed = yes
	}

	### Election Threshold
	set_variable = { election_threshold = 0.02 }

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^1 = 0.1587 } #conservatism
	set_variable = { party_pop_array^2 = 0.0871 } #liberalism
	set_variable = { party_pop_array^3 = 0.0098 } #socialism
	set_variable = { party_pop_array^5 = 0.102 } #anarchist_communism
	set_variable = { party_pop_array^11 = 0.0117 } #Caliphate
	set_variable = { party_pop_array^13 = 0.3786 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.02 } #Neutral_conservatism
	set_variable = { party_pop_array^18 = 0.1383 } #neutral_Social
	set_variable = { party_pop_array^19 = 0.0296 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.0642 } #Nat_Populism

	### Ruling Party
	set_variable = { ruling_party = 13 } ##PWP
	add_to_array = { gov_coalition_array = 14 } #NPC

	startup_politics = yes

	create_country_leader = {
		name = "Joseph Estrada"
		picture = "joseph_estrada.dds"
		ideology = Neutral_Autocracy
		traits = {
			neutrality_Neutral_Autocracy
			greedy
			deceitful
			silent_workhorse
		}
	}
	set_variable = { term_limit = 1 }
	set_variable = { current_term = 1 }

	# Field Marshals
	recruit_character = PHI_angelo_reyes
#	recruit_character = PHI_hernando_iriberri

	# Corps Commanders
	recruit_character = PHI_diomedio_villanueva
	recruit_character = PHI_roy_cimatu
	recruit_character = PHI_dionisio_santiago
	recruit_character = PHI_narciso_abaya
	recruit_character = PHI_efren_abu
#	recruit_character = PHI_rodolfo_garcia
#	recruit_character = PHI_jose_calimlim
	recruit_character = PHI_hermogenes_esperon
	recruit_character = PHI_alexander_yano
	recruit_character = PHI_victor_ibrado
#	recruit_character = PHI_luisito_fernandez
	recruit_character = PHI_gregorio_catapang
#	recruit_character = PHI_jessie_dellosa

	# Navy Leaders
	recruit_character = PHI_guillermo_wong
#	recruit_character = PHI_jesus_millan
#	recruit_character = PHI_caesar_taccad
#	recruit_character = PHI_ronald_mercado

	# Air Advisors
	recruit_character = PHI_benjamin_defensor_jr
#	recruit_character = PHI_edgar_fallorina

set_country_flag = PHI_locked_corruption


	# Relation Starting Configuration (moved from on_startup)
	add_opinion_modifier = { target = CUB modifier = sanctions }
	add_relation_modifier = { target = USA modifier = USA_World_Economical_Relations }
	add_relation_modifier = { target = SOV modifier = SOV_World_Economical_Relations }
	add_relation_modifier = { target = CHI modifier = CHI_World_Economical_Relations }
	add_relation_modifier = { target = FRA modifier = FRA_World_Economical_Relations }
	add_relation_modifier = { target = GER modifier = GER_World_Economical_Relations }
	add_relation_modifier = { target = ENG modifier = ENG_World_Economical_Relations }
	add_relation_modifier = { target = SPR modifier = SPR_World_Economical_Relations }
	add_relation_modifier = { target = ITA modifier = ITA_World_Economical_Relations }
	add_relation_modifier = { target = UKR modifier = UKR_world_economical_relations }
	add_relation_modifier = { target = ISR modifier = ISR_World_Economical_Relations }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists_Trade }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists_Trade }
}

2017.1.1 = { 
	set_country_flag = Major_Non_NATO_Ally
	set_variable = { small_medium_business_owners = 75 }
	set_variable = { maritime_industry_opinion = 60 }

	add_opinion_modifier = { target = SIN modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = SIN modifier = asean_plus_three_relations }
	add_opinion_modifier = { target = SIA modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = SIA modifier = asean_plus_three_relations }
	add_opinion_modifier = { target = VIE modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = VIE modifier = asean_plus_three_relations }
	add_opinion_modifier = { target = CHI modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = CHI modifier = asean_plus_three_relations }
	add_opinion_modifier = { target = KOR modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = KOR modifier = asean_plus_three_relations }
	add_opinion_modifier = { target = JAP modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = JAP modifier = asean_plus_three_relations }

	# Starting tech
	set_technology = { 
		infantry_weapons_2 = 1
		infantry_weapons_3 = 1 
		support_weapons = 1
		support_weapons2 = 1
		tandem_charge_warheads = 1
		squad_automatic_weapon = 1
		support_weapons3 = 1 
		microprocessors = 1
		computing2 = 1 
		computing3 = 1 
		genetics_1 = 1 
		internet2 = 1 #2G
		wifi = 1
		gprs = 1
		internet3 = 1 #3G
	}
	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		set_technology = { 
			decryption2 = 1
			decryption3 = 1  
			encryption2 = 1
			encryption3 = 1 
		}
	}   
	### Economy
	set_variable = { var = debt value = 227 }
	set_variable = { var = treasury value = 81 }
	set_variable = { var = int_investments value = 12 }
	set_variable = { var = corporate_tax_rate value = 30 }
	set_variable = { var = population_tax_rate value = 15 }

	set_popularities = {
		democratic = 27.8
		communism = 34.5
		fascism = 2.2
		neutrality = 32.4
		nationalist = 3.1
	}
	set_politics = {
		ruling_party = communism
		last_election = "2016.5.9"
		election_frequency = 72
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.043 } #conservatism
	set_variable = { party_pop_array^2 = 0.235 } #liberalism
	set_variable = { party_pop_array^3 = 0 } #socialism
	set_variable = { party_pop_array^4 = 0 } #Communist-State
	set_variable = { party_pop_array^5 = 0.345 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0.022 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0.04 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.145 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0.105 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.034 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.031 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 5 } #Rodrigo Duterte's Party
	add_to_array = { gov_coalition_array = 1 } #Lakas-CMD
	add_to_array = { gov_coalition_array = 14 } #Nationalist People's Coalition
	add_to_array = { gov_coalition_array = 20 } #Nacionalista

	startup_politics = yes

	create_country_leader = {
		name = "Rodrigo Duterte"
		picture = "rodrigo_duterte.dds"
		ideology = anarchist_communism
		traits = {
			emerging_anarchist_communism
			narcissist
			inexperienced
			honest
			emotional
			rash
		}
	} 
}